<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>Socdev</title>
		<link rel="stylesheet" type="text/css" href="css/main.css"/>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
	</head>
	<body>

<p><a href="/api/tester/">API TESTER</a></p>	
<h1>List of Groups:</h1>


{% if groups_count %}
 
<p>We have {{groups_count}} groups! :-)</p>

<table>
  <tr>
      <th>key</th>
      <th>name</th>
      <th>description</th>
      <th>deadline</th>
      <th>github</th>
    </tr>

{% for group in groups %}
<tr> 
<td>
{{group.key}}
</td>
<td>
{{group.name}}
</td>
<td>
{{group.description}}
</td>
<td>
{{group.deadline}}
</td>
<td>
{{group.github}}
</td>
</tr> 
{% endfor %}
</table>

{% else %}

<p>Group list is empty :(</p>

{% endif %}


<hr />


<h1>List of Users:</h1>


{% if users_count %}
 
<p>We have {{users_count}} users! :-)</p>

<table>
  <tr>
      <th>key</th>
      <th>nick</th>
      <th>fullname</th>
      <th>description</th>
    </tr>

{% for user in users %}
<tr> 
<td>
{{user.key}}
</td>
<td>
{{user.nick}}
</td>
<td>
{{user.fullname}}
</td>
<td>
{{user.description}}
</td>
</tr> 
{% endfor %}
</table>

{% else %}

<p>User list is empty :(</p>

{% endif %}


<hr />

<h1>List of Tasks:</h1>


{% if tasks_count %}
 
<p>We have {{tasks_count}} tasks! :-)</p>

<table>
  <tr>
      <th>key</th>
      <th>name</th>
      <th>description</th>
      <th>checked</th>
      <th>deadline</th>
      <th>group name</th>
      <th>group key</th>
    </tr>

{% for task in tasks %}
<tr> 
<td>
{{task.key}}
</td>
<td>
{{task.name}}
</td>
<td>
{{task.description}}
</td>
<td>
{{task.checked}}
</td>
<td>
{{task.deadline}}
</td>
<td>
{{task.group.name}}
</td>
<td>
{{task.group.key}}
</td>
</tr> 
{% endfor %}
</table>

{% else %}

<p>Task list is empty :(</p>

{% endif %}


<hr />



<h1>List of Messages:</h1>


{% if messages_count %}
 
<p>We have {{messages_count}} messages! :-)</p>

<table>
  <tr>
      <th>key</th>
      <th>title</th>
      <th>text</th>
      <th>date</th>
      <th>sender</th>
      <th>recipient</th>
      <th>group key</th>
    </tr>

{% for message in messages %}
<tr> 
<td>
{{message.key}}
</td>
<td>
{{message.title}}
</td>
<td>
{{message.text}}
</td>
<td>
{{message.date}}
</td>
<td>
{{message.sender.nick}}
</td>
<td>
{{message.recipient.nick}}
</td>
<td>
{{message.group.key}}
</td>
</tr> 
{% endfor %}
</table>

{% else %}

<p>Message list is empty :(</p>

{% endif %}


<hr />





</body>
</html>